﻿using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPY.LeHealth.DTO
{
    [Alias("combo")]
   public  class ComboDTO:BaseDTO
    {
       /// <summary>
       /// 套餐价格
       /// </summary>
        public Decimal Price { get; set; }

        /// <summary>
        /// 原价
        /// </summary>
        public Decimal OriginalPrice { get; set; }

       /// <summary>
        /// 套餐名称
       /// </summary>
        public string Name { get; set; }

       /// <summary>
        /// 套餐介绍
       /// </summary>
        public string Details { get; set; }

       /// <summary>
        /// 所属机构(外键)
       /// </summary>
        [References(typeof(HospitalDTO))]
        public int HospitalId { get; set; }

        [Reference]
        public HospitalDTO Hospital { get; set; }

       /// <summary>
        /// 适宜人群
       /// </summary>
        public string Appropriate { get; set; }

        //套餐类型
        [References(typeof(ComboTypeDTO))]
        public int ComboTypeId { get; set; }

        [Reference]
        public ComboTypeDTO ComboType { get; set; }

        /// <summary>
        /// true:单项体检
        /// false:套餐
        /// </summary>
        public bool Single { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 套餐原价格
        /// </summary>
        public Decimal Oldprice { get; set; }
        /// <summary>
        /// 预约人数
        /// </summary>
        public int Sonnum { get; set; }
        /// <summary>
        /// 套餐图片路径
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 重点检查
        /// </summary>
        public string Scheck { get; set; }

        /// <summary>
        /// 组合套餐名
        /// </summary>
        [Ignore]
        public string Zname { get; set; }

        
    }
}
